package daa.levelup.aCipher;


public class CipherManager {
    aAlphabet alphabeta = new aAlphabet();
    String alphabet = "";







    aCaeasar aC = new aCaeasar(alphabet);
    aVizener aV = new aVizener(alphabet);


    public String EncryptAction(String type, String key, String text) {
        String cipher = "";
        if (type.equals("Caesar")) cipher = aC.getEncryption(text, key);
        else {
            if (type.equals("Vizener")) cipher = aV.getEncryption(text, key);
        }
        return cipher;
    }
    public String DecryptAction(String type, String key, String text) {
        if (type.equals("Caesar")) {

            System.out.println(aC.getDecryption(text, key));
            System.out.println(text);
        } else if (type.equals("Vizener")) {
            System.out.println(text);
            System.out.println(aV.getDecryption(text, key));
        }
        return text;
    }

}
